package com.dg11185.nearshop.net.request;

import com.dg11185.libs.network.http.client.HttpRequest;
import com.dg11185.libs.utils.MD5.MD5Utils;
import com.dg11185.nearshop.app.Constants;
import com.dg11185.nearshop.net.response.GetIndustryListResponse;

/**
 * 获取行业列表
 * @author：Daibo    
 * @time：2014-5-16 下午1:39:06
 */
public class GetIndustryListRequest extends HttpRequest<GetIndustryListResponse> {

    public GetIndustryListRequest() {
        super(Constants.ADDRESS, Constants.getIndustryList);
        addParam("chshToken", Constants.TOKEN);
        addParam("chshSign", MD5Utils.getMD5Str(getParams(), Constants.MD5_key));
    }

    @Override
    protected GetIndustryListResponse parseJson(String response) throws Exception {
        GetIndustryListResponse r = new GetIndustryListResponse();
        r.parseJson(response);
        return r;
    }

}
